package com.yanqu.road.logic.bussiness.servercenter;

import com.yanqu.road.entity.platform.PlatformForbidden;
import com.yanqu.road.entity.servercenter.whitelist.WhiteAccount;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class PlatformUserIdInfoBussiness {

    public static void getPlatformUserIdList(List<String> platformUserIdList) {
        DaoHelper.getPlatformUserIdDaoImpl().getPlatformUserIdList(platformUserIdList);
    }

    public static void updateLoginTime(String platformUserId, long loginTime) {
        DaoHelper.getPlatformUserIdDaoImpl().updateLoginTime(platformUserId, loginTime);
    }

    public static Map<String, Map<Integer, PlatformForbidden>> getForbiddenPlatformUserIdList() {
        return DaoHelper.getPlatformUserIdDaoImpl().getForbiddenPlatformUserIdList();
    }

    public static Map<Long, Map<Integer, Long>> getCmdForbiddenMap(int serverId) {
        return DaoHelper.getPlatformUserIdDaoImpl().getCmdForbiddenMap(serverId);
    }

    public static List<Long> getTokenWhiteUserIdList() {
        return DaoHelper.getPlatformUserIdDaoImpl().getTokenWhiteUserIdList();
    }

    public static List<WhiteAccount> getWhiteAccounts() {
        return DaoHelper.getPlatformUserIdDaoImpl().getWhiteAccounts();
    }

    public static boolean addForbiddenInfo(PlatformForbidden platformForbidden) {
        return DaoHelper.getPlatformUserIdDaoImpl().addForbiddenInfo(platformForbidden);
    }

    public static boolean updateForbiddenInfo(PlatformForbidden platformForbidden) {
        return DaoHelper.getPlatformUserIdDaoImpl().updateForbiddenInfo(platformForbidden);
    }
}
